<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets">


<ui:composition template="/templates/layoutestacionamento.xhtml">
	<ui:define name="corpo">

		<div id="corpo">		
			
		<div class="cadastro" >
			<div id="descricao">
				<span id="descricao">Alterar Senha</span>
			</div>	
			

			<p:fieldset>
			
			
			
			
			<div style="margin-top: 50px;margin-left:20px; height:200px;" >
			<p class="info" style="color: #000">
						 * A confirmação de sua nova senha será encaminhada para sua caixa de e-mail.
					</p>
				<h:form>
					<h:panelGrid columns="2" cellspacing="5">

						
							<h:outputLabel value="Nova Senha: * " for="senha" />
								<h:panelGroup>
									<p:password id="senha" label="Senha"
										value="#{estacionamentoBean.usuario.senha}" size="30"
										maxlength="25" redisplay="false"
										feedback="true" requiredMessage="Informe uma senha"
										weakLabel="Fraca" goodLabel="Boa" strongLabel="Forte"
										promptLabel="Por Favor insira uma senha" />
									<span id="erro"> <h:message for="senha" /> </span>
								</h:panelGroup>

								<h:outputLabel value="Confirmar Senha: * " for="confirmarsenha" />
								<h:panelGroup>
									<p:password id="confirmarsenha" label="Confirmar Senha"
										value="#{estacionamentoBean.confirmarSenha}" size="30"
										maxlength="20" required="#{empty contextoBean.usuarioLogado}" redisplay="false"
										requiredMessage="Confirme senha informada" />
									<span id="erro"> <h:message for="confirmarsenha" /> </span>
								</h:panelGroup>
								<h:outputLabel />
							<h:commandButton action="#{estacionamentoBean.alterarSenha}" value=" Enviar "
								styleClass="css3button" />
					</h:panelGrid>

				</h:form>
				</div>
			</p:fieldset>
			
		</div>
		<br />
		</div>
	</ui:define>
</ui:composition>

</html>